#ifndef WRITER_H
#define WRITER_H

#include <QRunnable>
#include <QObject>
#include "shelf.h"

class Writer : public QObject, public QRunnable
{
    Q_OBJECT
public:
    explicit Writer(Shelf *shelf, int time, QObject *parent = 0);
    void run();
    
signals:
    void write();
    void edit();
    void wait();

private:
    Shelf *shelf;
    int time;
    QVector<int> bookCollection;
};

#endif // WRITER_H
